(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/index/index" ], {
    2946: function(t, a, n) {
        n.d(a, "b", function() {
            return e;
        }), n.d(a, "c", function() {
            return o;
        }), n.d(a, "a", function() {});
        var e = function() {
            var t = this;
            t.$createElement;
            t._self._c;
        }, o = [];
    },
    8069: function(t, a, n) {
        n.r(a);
        var e = n("da67"), o = n.n(e);
        for (var i in e) [ "default" ].indexOf(i) < 0 && function(t) {
            n.d(a, t, function() {
                return e[t];
            });
        }(i);
        a.default = o.a;
    },
    "928c": function(t, a, n) {
        var e = n("f8a5");
        n.n(e).a;
    },
    d537: function(t, a, n) {
        (function(t) {
            function a(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            n("6cdc"), a(n("66fd")), t(a(n("f75a")).default);
        }).call(this, n("543d").createPage);
    },
    da67: function(t, a, n) {
        (function(t) {
            Object.defineProperty(a, "__esModule", {
                value: !0
            }), a.default = void 0;
            var e = {
                data: function() {
                    return {
                        title: "Hello",
                        xuanzhuan: "xuanzhuan",
                        sets: "",
                        mimg: n("bb5e"),
                        bgimg: n("84d7"),
                        audio: "",
                        suid: "",
                        wxInfo: {},
                        user: {},
                        list: [],
                        data: [],
                        type: "",
                        showone: !1
                    };
                },
                onLoad: function(t) {
                    t.content && (this.type = "share", this.data.push(t.content), this.user.nickName = t.nickName, 
                    this.user.avatarUrl = t.avatarUrl), this.getData();
                    var a = this;
                    wx.request({
                        url: "https://m.elwtc.com/app/index.php?i=4&t=0&v=1.0.4&from=wxapp&c=entry&a=wxapp&do=index&&m=kz_mgxnzf",
                        success: function(t) {
                            console.log("a---", t), t.data.data.basic.attachurl = t.data.data.attachurl, t.data.data.basic.nicknametop = parseInt(t.data.data.basic.avatartop) + 200, 
                            a.sets = t.data.data, console.log("sets", a.sets), wx.setNavigationBarTitle({
                                title: "虎年新年祝福"
                            }), wx.setNavigationBarColor({
                                frontColor: t.data.data.basic.titlecolor,
                                backgroundColor: t.data.data.basic.titlebg
                            }), a.audio = wx.createInnerAudioContext(), a.audio.src = t.data.data.attachurl + t.data.data.basic.bgaudio;
                        }
                    });
                },
                onShareAppMessage: function() {
                    var t = wx.getStorageSync("suid");
                    return console.log("nickname", this.wxInfo), {
                        title: this.sets.share.title || this.wxInfo.nickName + "给您发了虎年新年祝福",
                        path: "pages/index/index?suid=" + t + "&nickName=" + this.wxInfo.nickName + "&content=" + this.data[0] + "&avatarUrl=" + this.wxInfo.avatarUrl,
                        imageUrl: this.sets.share.pic ? this.sets.attachurl + this.sets.share.pic : ""
                    };
                },
                methods: {
                    getData: function() {
                        var t = this;
                        wx.request({
                            url: "https://reactvue.cn:8188/getBlessList",
                            success: function(a) {
                                console.log("a", a), t.list = a.data, "share" !== t.type && (t.data = a.data[Math.floor(Math.random() * a.data.length)].content.split("\r")), 
                                console.log("data-=-=-=", t.data);
                            }
                        });
                    },
                    music: function() {
                        "" == this.data.xuanzhuan ? (this.audio.play(), this.xuanzhuan = "xuanzhuan") : (this.audio.pause(), 
                        this.xuanzhuan = "");
                    },
                    imageError: function() {},
                    reload: function() {
                        var t = this.list.length;
                        this.data = this.list[Math.floor(Math.random() * t)].content.split("\r");
                    },
                    rehome: function() {
                        this.showone = !0, this.type = "";
                    },
                    getuserinfo: function(a) {
                        var n = this;
                        wx.getUserProfile({
                            desc: "用于向分享用户展示身份",
                            success: function(t) {
                                console.log("getprofile", t), n.wxInfo = t.userInfo, n.showone = !0, n.type = "";
                            },
                            fail: function(a) {
                                console.log("error", a), t.showToast({
                                    title: "请授权小程序",
                                    duration: 2e3
                                });
                            }
                        });
                    }
                }
            };
            a.default = e;
        }).call(this, n("543d").default);
    },
    f75a: function(t, a, n) {
        n.r(a);
        var e = n("2946"), o = n("8069");
        for (var i in o) [ "default" ].indexOf(i) < 0 && function(t) {
            n.d(a, t, function() {
                return o[t];
            });
        }(i);
        n("928c");
        var s = n("f0c5"), r = Object(s.a)(o.default, e.b, e.c, !1, null, null, null, !1, e.a, void 0);
        a.default = r.exports;
    },
    f8a5: function(t, a, n) {}
}, [ [ "d537", "common/runtime", "common/vendor" ] ] ]);